package com.googlecode.cnasort.cc.rmi.server.core;

import org.apache.log4j.Logger;

/**
 *
 */
public class Log4JMessage implements Message
{
    private Logger logger;

    public Log4JMessage( final Logger logger)
    {
        this.logger = logger;
    }

    @Override
	public void info(String message) {
        logger.info( message );
    }

    @Override
    public void warn(String message) {
        logger.warn( message );
    }

    @Override
    public void warn(String message, Throwable exception) {
        logger.warn( message, exception );
    }

    @Override
    public boolean isTraceEnabled() {
        return logger.isTraceEnabled();
    }

    @Override
    public void trace(String message) {
        logger.trace( message );
    }
}
